package memberForm

type MemberAddForm struct {
	MemberNo     string  `form:"memberNo" json:"memberNo" binding:"-"`
	Mobile       string  `form:"mobile" json:"mobile" binding:"required"`
	Balance      float64 `form:"balance" json:"balance" binding:"gte=0"`
	MemberName   string  `form:"memberName" json:"memberName" binding:"required"`
	Active       bool    `form:"active" json:"active" binding:"-"`
	RegisterTime string  `form:"registerTime" json:"registerTime" binding:"required"`
	Store        string  `form:"store" json:"store" binding:"required"`
	Remark       string  `form:"remark" json:"remark" binding:"-"`
}

type MemberUpdateForm struct {
	Id           int64   `json:"id" json:"id" binding:"required"`
	MemberNo     string  `form:"memberNo" json:"memberNo" binding:"-"`
	Mobile       string  `form:"mobile" json:"mobile" binding:"required"`
	Balance      float64 `form:"balance" json:"balance" binding:"gte=0"`
	MemberName   string  `form:"memberName" json:"memberName" binding:"required"`
	Active       bool    `form:"active" json:"active" binding:"-"`
	RegisterTime string  `form:"registerTime" json:"registerTime" binding:"required"`
	Store        string  `form:"store" json:"store" binding:"required"`
	Remark       string  `form:"remark" json:"remark" binding:"-"`
}

type MemberSearchForm struct {
	MemberNo     string `form:"memberNo" json:"memberNo" binding:"-"`
	Mobile       string `form:"mobile" json:"mobile" binding:"-"`
	MemberName   string `form:"memberName" json:"memberName" binding:"-"`
	Active       bool   `form:"active" json:"active" binding:"-"`
	RegisterTime string `form:"registerTime" json:"registerTime" binding:"-"`
	Store        string `form:"store" json:"store" binding:"-"`
}

type MemberIdForm struct {
	Id int `json:"id" form:"id" binding:"required"`
}

type DeactivateMemberForm struct {
	Uid int `json:"uid" form:"uid" binding:"required"`
}

type RechargeMemberForm struct {
	Id         int     `json:"id" form:"id" binding:"required"`
	Mobile     string  `form:"mobile" json:"mobile" binding:"required"`
	NewBalance float64 `form:"newbalance" json:"newbalance" binding:"gte=0"`
	Remark     string  `form:"remark" json:"remark" binding:"-"`
}
